<template>
  <div>
    <slot :sizhe="sizhe" :objTest="objTest"></slot>
    <slot name="zuoyongyu1" :sizhe="sizhe"></slot>
  </div>
</template>

<script>
// 作用域插槽将子组件中的数据传递给父组件
export default {
  data() {
    return {
      sizhe: "思哲很可爱",
      objTest: {
        name: "焦子洋",
        age: 18,
      },
    };
  },
};
</script>

<style lang="scss" scoped>
</style>